package com.xiaoshuidi.cloud.module.rooms.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaoshuidi.cloud.framework.mybatis.core.dataobject.BaseDO;
import com.xiaoshuidi.cloud.framework.tenant.core.db.TenantBaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 房源扩展信息,主要用于备案
 * </p>
 *
 * @author hans.zhang
 * @since 2023-05-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("room_house_info")
@Schema(description="房源扩展信息,主要用于备案")
public class RoomHouseInfo extends TenantBaseDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "公寓ID")
    private Long roomHouseId;

    @Schema(description = "产权人姓名")
    private String ownerName;

    @Schema(description = "产权人证件类型,1-居民身份证，2-社会统一信用代码，3-组织机构代码证，9-其他")
    private String cardType;

    @Schema(description = "产权人证件号码")
    private String cardNo;

    @Schema(description = "产权人联系电话")
    private String telPhone;

    @Schema(description = "产权类型  1-商品房合同，2-房地产权证，9-其他")
    private String propertyType;

    @Schema(description = "产权证编号")
    private String propertyNo;

    @Schema(description = "房屋类型 1-住宅，2-非住宅")
    private String registerType;

    @Schema(description = "房屋结构，1-钢筋混凝土结构，2-钢结构，3-混合结构，4-其他结构")
    private String houseStructure;

    @Schema(description = "附件信息")
    private String picUrl;

}
